﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: CollectionFieldRulesEntity.cs
// 修改时间：2020-9-8 10:39:57
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：CollectionFieldRules 的实体类.
	/// </summary>
	[Table("CollectionFieldRules")]
	public partial class CollectionFieldRulesEntity
	{
		#region Properties
		private int? _fieldRuleID = 0;
		/// <summary>
		/// 字段规则ID(主键)
		/// </summary>
		[Column("FieldRuleID",TypeName="int")]
		[Key]
		public int? FieldRuleID
		{
			get {return _fieldRuleID;}
			set {_fieldRuleID = value;}
		}
		
		private int? _itemID = 0;
		/// <summary>
		/// 采集项目ID
		/// </summary>
		[Column("ItemID",TypeName="int")]
		public int? ItemID
		{
			get {return _itemID;}
			set {_itemID = value;}
		}
		
		private System.String _fieldName = string.Empty;
		/// <summary>
		/// 字段名称
		/// </summary>
		[Column("FieldName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String FieldName
		{
			get {return _fieldName;}
			set {_fieldName = value;}
		}
		
		private System.String _fieldType = string.Empty;
		/// <summary>
		/// 字段类型
		/// </summary>
		[Column("FieldType",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String FieldType
		{
			get {return _fieldType;}
			set {_fieldType = value;}
		}
		
		private int? _ruleType = 0;
		/// <summary>
		/// 0:默认 1:指定 2:从HTML获取
		/// </summary>
		[Column("RuleType",TypeName="int")]
		public int? RuleType
		{
			get {return _ruleType;}
			set {_ruleType = value;}
		}
		
		private System.String _beginCode = string.Empty;
		/// <summary>
		/// 开始代码
		/// </summary>
		[Column("BeginCode",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String BeginCode
		{
			get {return _beginCode;}
			set {_beginCode = value;}
		}
		
		private System.String _endCode = string.Empty;
		/// <summary>
		/// 结束代码
		/// </summary>
		[Column("EndCode",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String EndCode
		{
			get {return _endCode;}
			set {_endCode = value;}
		}
		
		private System.String _privateFilter = string.Empty;
		/// <summary>
		/// 过滤项目
		/// </summary>
		[Column("PrivateFilter",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PrivateFilter
		{
			get {return _privateFilter;}
			set {_privateFilter = value;}
		}
		
		private System.String _filterRuleID = string.Empty;
		/// <summary>
		/// 过滤规则ID
		/// </summary>
		[Column("FilterRuleID",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String FilterRuleID
		{
			get {return _filterRuleID;}
			set {_filterRuleID = value;}
		}
		
		private System.Boolean _isUsePaging = false;
		/// <summary>
		/// 是否采集分页
		/// </summary>
		[Column("IsUsePaging",TypeName="bit")]
		public System.Boolean IsUsePaging
		{
			get {return _isUsePaging;}
			set {_isUsePaging = value;}
		}
		
		private System.String _specialSetting = string.Empty;
		/// <summary>
		/// 特别设置
		/// </summary>
		[Column("SpecialSetting",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SpecialSetting
		{
			get {return _specialSetting;}
			set {_specialSetting = value;}
		}
		
		private int? _exclosionID = 0;
		/// <summary>
		/// 排除关联ID
		/// </summary>
		[Column("ExclosionID",TypeName="int")]
		public int? ExclosionID
		{
			get {return _exclosionID;}
			set {_exclosionID = value;}
		}
		
		#endregion
	}
}
